//
//  PaoPaoView.m
//  家校互通
//
//  Created by 姬鑫宇 on 15/7/10.
//  Copyright (c) 2015年 姬鑫宇. All rights reserved.
//

#import "PaoPaoView.h"

@implementation PaoPaoView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (id)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        _headImg.layer.cornerRadius = 25;
        _headImg.layer.masksToBounds = YES;
    }
    
    return self;
}

- (void)setContentOfName:(NSString *)name andIcon:(NSString *)icon{
    [_headImg sd_setImageWithURL:[NSURL URLWithString:icon] placeholderImage:[UIImage imageNamed:@"icon1.jpg"]];
    _nameLB.text = name;
}

@end
